<div id="media_upload">
    <form method="post" enctype="multipart/form-data">
        <table>
            <tfoot>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="carica immagine" />
                    </td>
                </tr>
            </tfoot>
            <tbody>
                <?php echo $form ?>
            </tbody>
        </table>
    </form>

    <?php if($sf_request->isMethod('post')): ?>
        <div id="media_risposta">
            <?php if($form->isValid()): ?>
                upload effettuato con successo<br/>
                <a href="javascript:window.close()">chiudi la finestra</a>
                
            <?php endif; ?>
        </div>
    <?php endif; ?>
</div>